package com.ydkj.a37e_mall.Classes.Model.Response;

import java.util.List;

/**
 * Created by Administrator on 2017/2/18.
 */

public class MyFavorResp {

    /**
     * errno : 000
     * errmsg :
     * result : {"data":[{"id":"14","product_id":"16","list_title":"iPhone6","name":"iPhone6","price":"2000.00","type":"","thumb":"http://oka115078.bkt.clouddn.com/o_1b7f4fpk4alb1s17kah1cq81j019.png","created_at":"2017-02-18 12:36:06","product":{},"is_integral":0}],"total_page":1,"current_page":1,"total":"1","access_token":"pq7MxaKZmMuf2JeUrNjKl6LRnZRp"}
     */

    private String errno;
    private String errmsg;
    private ResultEntity result;

    public String getErrno() {
        return errno;
    }

    public void setErrno(String errno) {
        this.errno = errno;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public ResultEntity getResult() {
        return result;
    }

    public void setResult(ResultEntity result) {
        this.result = result;
    }

    public static class ResultEntity {
        /**
         * data : [{"id":"14","product_id":"16","list_title":"iPhone6","name":"iPhone6","price":"2000.00","type":"","thumb":"http://oka115078.bkt.clouddn.com/o_1b7f4fpk4alb1s17kah1cq81j019.png","created_at":"2017-02-18 12:36:06","product":{},"is_integral":0}]
         * total_page : 1
         * current_page : 1
         * total : 1
         * access_token : pq7MxaKZmMuf2JeUrNjKl6LRnZRp
         */

        private int total_page;
        private int current_page;
        private String total;
        private String access_token;
        private List<DataEntity> data;

        public int getTotal_page() {
            return total_page;
        }

        public void setTotal_page(int total_page) {
            this.total_page = total_page;
        }

        public int getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public List<DataEntity> getData() {
            return data;
        }

        public void setData(List<DataEntity> data) {
            this.data = data;
        }

        public static class DataEntity {
            /**
             * id : 14
             * product_id : 16
             * list_title : iPhone6
             * name : iPhone6
             * price : 2000.00
             * type :
             * thumb : http://oka115078.bkt.clouddn.com/o_1b7f4fpk4alb1s17kah1cq81j019.png
             * created_at : 2017-02-18 12:36:06
             * product : {}
             * is_integral : 0
             */

            private String id;
            private String product_id;
            private String list_title;
            private String name;
            private String price;
            private String type;
            private String thumb;
            private String created_at;
            private ProductEntity product;
            private int is_integral;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getProduct_id() {
                return product_id;
            }

            public void setProduct_id(String product_id) {
                this.product_id = product_id;
            }

            public String getList_title() {
                return list_title;
            }

            public void setList_title(String list_title) {
                this.list_title = list_title;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public ProductEntity getProduct() {
                return product;
            }

            public void setProduct(ProductEntity product) {
                this.product = product;
            }

            public int getIs_integral() {
                return is_integral;
            }

            public void setIs_integral(int is_integral) {
                this.is_integral = is_integral;
            }


            public static class ProductEntity {
                private boolean is_delete = false;

                public boolean is_delete() {
                    return is_delete;
                }

                public void setIs_delete(boolean is_delete) {
                    this.is_delete = is_delete;
                }
            }

        }
    }
}
